﻿<%@ Control Language="C#" ClassName="DoanhSoFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
				<td class="literal">So Hoa Don:</td>
				<td>
					<asp:TextBox runat="server" ID="dataSoHoaDon" Text='<%# Bind("SoHoaDon") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>				
			<tr>
				<td class="literal">Ngay Lay Hang:</td>
				<td>
					<asp:TextBox runat="server" ID="dataNgayLayHang" Text='<%# Bind("NgayLayHang", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataNgayLayHang" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>				
			<tr>
				<td class="literal">Khach Hang Id:</td>
				<td>
					<data:EntityDropDownList runat="server" ID="dataKhachHangId" DataSourceID="KhachHangIdKhachHangDataSource" DataTextField="TenKh" DataValueField="KhachHangId" SelectedValue='<%# Bind("KhachHangId") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:KhachHangDataSource ID="KhachHangIdKhachHangDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>				
			<tr>
				<td class="literal">Inventory Item Id:</td>
				<td>
					<asp:HiddenField runat="server" id="dataInventoryItemId" Value='<%# Bind("InventoryItemId") %>'></asp:HiddenField>
				</td>
			</tr>				
			<tr>
				<td class="literal">So Luong:</td>
				<td>
					<asp:TextBox runat="server" ID="dataSoLuong" Text='<%# Bind("SoLuong") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataSoLuong" runat="server" Display="Dynamic" ControlToValidate="dataSoLuong" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Don Gia:</td>
				<td>
					<asp:TextBox runat="server" ID="dataDonGia" Text='<%# Bind("DonGia") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataDonGia" runat="server" Display="Dynamic" ControlToValidate="dataDonGia" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Thanh Tien:</td>
				<td>
					<asp:TextBox runat="server" ID="dataThanhTien" Text='<%# Bind("ThanhTien") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataThanhTien" runat="server" Display="Dynamic" ControlToValidate="dataThanhTien" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>				
			<tr>
				<td class="literal">Ghi Chu:</td>
				<td>
					<asp:TextBox runat="server" ID="dataGhiChu" Text='<%# Bind("GhiChu") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>				
			
		</table>

	</ItemTemplate>
</asp:FormView>


